package com.wondersgroup.fjzlpt.tbxt.service.inter.yltfwtz;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * Created by sanma on 2017/9/18.
 */
public interface YltfwtzService {

    /**
     * 保存
     * @param map
     * @return
     */
    public JSONObject save(Map map);

    /**
     * 分页查询
     * @param map
     * @return
     */
    public JSONObject queryPage(Map map);

    /**
     * 根据主键ID删除数据（不可恢复）
     * @param map
     * @return
     */
    public JSONObject delete(Map map);

    /**
     * 下载Excel模板
     * @param response
     */
    public void downExcelModel(HttpServletRequest request, HttpServletResponse response);

    /**
     * 解析上传的Excel数据
     * @param request
     * @return
     */
    public String parseExcalData(MultipartFile file, HttpServletRequest request);
}
